# -*- mode: snippet -*-
# name: sessioninfo
# key: sessioninfo
# contributor: Shuguang Sun
# --
# R Session Info ----
# Keep this at the bottom of the code file
# %% R session info
if ("sessioninfo" %in% .packages(all.available = TRUE)) {
  sessioninfo::session_info()
} else if ("devtools" %in% .packages(all.available = TRUE)) {
  devtools::session_info()
} else {
  utils::sessionInfo()
}